package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbClearingDetailsDao;
import com.gtw.modules.entity.TbClearingDetails;
import com.gtw.modules.sys.service.SysTbClearingDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wuye on 2018/3/27.
 */
@Service
public class SysTbClearingDetailsServiceImpl implements SysTbClearingDetailsService {

    @Autowired
    private TbClearingDetailsDao tbClearingDetailsDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbClearingDetailsDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbClearingDetails record) {
        return tbClearingDetailsDao.insert(record);
    }

    @Override
    public int insertSelective(TbClearingDetails record) {
        return tbClearingDetailsDao.insertSelective(record);
    }

    @Override
    public TbClearingDetails selectByPrimaryKey(Integer id) {
        return tbClearingDetailsDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbClearingDetails record) {
        return tbClearingDetailsDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbClearingDetails record) {
        return tbClearingDetailsDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbClearingDetails> queryList(Map<String, Object> map) {
        return tbClearingDetailsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbClearingDetailsDao.queryTotal(map);
    }

    @Override
    public List<TbClearingDetails> queryByUserIdAndState(Map<String, Object> map) {
        return tbClearingDetailsDao.queryByUserIdAndState(map);
    }
}
